package IO1;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

/**
 * @Description
 * @Author:PrinceHan
 * @CreateTime:2021/10/23 08:50
 */
public class FileOutputStreamDemo1 {
        public static void main(String[] args) throws IOException {
//                FileOutputStream fos = new FileOutputStream("E:\\Java-IDEA\\projects\\class2_day8\\fos.txt",true);
//                File file = new File("E:\\Java-IDEA\\projects\\class2_day8\\fos.txt");
//                FileOutputStream fos= new FileOutputStream(file);
                FileOutputStream fos = new FileOutputStream("fos.txt",true);
                fos.write("曲师大\n".getBytes(StandardCharsets.UTF_8));

        }
}
